package cate.game.role.system;

import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("个人空间里的系统设置")
public class BlogConfig {

	@NoteField("音乐")
	public Boolean music;

	@NoteField("音效")
	public Boolean soundEffects;

	@NoteField("语音")
	public Boolean voice;

	@NoteField("聊天展示vip")
	public boolean chatShowVip;

	@NoteField("聊天展示称号")
	public boolean chatShowTitle;

	public void initialize() {
		if (music == null) {
			music = true;
		}
		if (soundEffects == null) {
			soundEffects = true;
		}
		if (voice == null) {
			voice = true;
		}
	}

	public void readFrom(BlogConfig config){
		this.music = config.music;
		this.soundEffects = config.soundEffects;
		this.voice = config.voice;
		this.chatShowVip = config.chatShowVip;
		this.chatShowTitle = config.chatShowTitle;
	}
}
